package cn.junki.corsdemo.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author Junki
 * @date 2023-09-13 13:35:09
 */
@CrossOrigin
@RequestMapping("/hello")
@RestController
public class HelloController {

    @PostMapping
    public String hello() {
        return "Hello " + new Date();
    }

}
